package com.sleep.blog.service;

import com.sleep.blog.vo.Result;
import com.sleep.blog.vo.params.CommentParam;

/**
 * @author Sleep-6000
 * @date 2021/9/29
 */
public interface CommentService {

    /**
     * 根据 文章id 查找评论
     * @param id 文章id
     * @return 查询结果
     */
    Result findCommentsById(Long id);

    /**
     * 写评论
     * @param commentParam commentParam
     * @return comment
     */
    Result comment(CommentParam commentParam);
}
